<template>
  <div class="xtx-tabs-panel" v-show="name === activename">
    <slot></slot>
  </div>
</template>

<script>
import { inject } from 'vue'
export default {
  name: 'XtxTabsPanel',
  props: {
    label: {
      type: String,
      default: ''
    },
    name: {
      type: [String, Number],
      default: ''
    }
  },
  setup (props) {
    const activename = inject('activename')
    return { activename }
  }
}
</script>

<style></style>
